package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RpRealtimedataMapper;
import com.ruoyi.system.domain.RpRealtimedata;
import com.ruoyi.system.service.IRpRealtimedataService;
import com.ruoyi.common.core.text.Convert;

/**
 * 信标数据明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
@Service
public class RpRealtimedataServiceImpl implements IRpRealtimedataService 
{
    @Autowired
    private RpRealtimedataMapper rpRealtimedataMapper;

    /**
     * 查询信标数据明细
     * 
     * @param ID 信标数据明细主键
     * @return 信标数据明细
     */
    @Override
    public RpRealtimedata selectRpRealtimedataByID(Long ID)
    {
        return rpRealtimedataMapper.selectRpRealtimedataByID(ID);
    }

    /**
     * 查询信标数据明细列表
     * 
     * @param rpRealtimedata 信标数据明细
     * @return 信标数据明细
     */
    @Override
    public List<RpRealtimedata> selectRpRealtimedataList(RpRealtimedata rpRealtimedata)
    {
        return rpRealtimedataMapper.selectRpRealtimedataList(rpRealtimedata);
    }

    /**
     * 新增信标数据明细
     * 
     * @param rpRealtimedata 信标数据明细
     * @return 结果
     */
    @Override
    public int insertRpRealtimedata(RpRealtimedata rpRealtimedata)
    {
        return rpRealtimedataMapper.insertRpRealtimedata(rpRealtimedata);
    }

    /**
     * 修改信标数据明细
     * 
     * @param rpRealtimedata 信标数据明细
     * @return 结果
     */
    @Override
    public int updateRpRealtimedata(RpRealtimedata rpRealtimedata)
    {
        return rpRealtimedataMapper.updateRpRealtimedata(rpRealtimedata);
    }

    /**
     * 批量删除信标数据明细
     * 
     * @param IDs 需要删除的信标数据明细主键
     * @return 结果
     */
    @Override
    public int deleteRpRealtimedataByIDs(String IDs)
    {
        return rpRealtimedataMapper.deleteRpRealtimedataByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除信标数据明细信息
     * 
     * @param ID 信标数据明细主键
     * @return 结果
     */
    @Override
    public int deleteRpRealtimedataByID(Long ID)
    {
        return rpRealtimedataMapper.deleteRpRealtimedataByID(ID);
    }
}
